package com.xyht.sca_s.student_manage_system.modules.examinePaymentEquipment.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.examinePaymentEquipment.entity.req.SmsPaymentExamineEquipmentProcurementProcessReq;
import com.xyht.sca_s.student_manage_system.modules.examinePaymentEquipment.service.SmsPaymentExamineEquipmentProcurementProcessService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 付款审批流程（设备采购） 前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2023-05-04
 */
@RestController
@RequestMapping("/examinePaymentEquipment/process")
@SecretBody
public class SmsPaymentExamineEquipmentProcurementProcessController {
    @Autowired
    private SmsPaymentExamineEquipmentProcurementProcessService smsPaymentExamineEquipmentProcurementProcessService;


    @ApiModelProperty(value = "流程修改")
    @PostMapping("/update")
    public ResponseResult updatePaymentExamineProcess(@RequestBody SmsPaymentExamineEquipmentProcurementProcessReq processReq) {
        return smsPaymentExamineEquipmentProcurementProcessService.updatePaymentExamineProcess(processReq);
    }

    @ApiModelProperty(value = "流程列表")
    @GetMapping("/list")
    public ResponseResult getPaymentExamineProcessList() {
        return smsPaymentExamineEquipmentProcurementProcessService.getPaymentExamineProcessList();
    }
}

